{% extends "main_template.html" %}

{% block body %}

      <div id="visit">
      
       <h2> {% ifequal co "browser" %} Browser {% else %} Crawler {% endifequal %} 
        </h2>

<br>

  {% ifequal type "blog_list" %}
  <table> <th> Tytul </th>  <th> Data napisania </th> 
    {% for id, address, topic, date_ in info %}  
      <tr> <td> <a href="/crawler/blog/{{ id }}">{{topic}}</a> </td> <td>{{ date_}} </td> </tr>

    {% endfor %}

    </table>
        <p class="more"><a href="instructions/crawler">Instrukcja</a></p>
      </div>
     
	

  {% endifequal %}


  {% ifequal type "blog_content" %}
    {% for  c_id,  content, address  in info %}  
    <br>
		<br>
      ID: {{ c_id }}
    <br>
    <br>
    <b>Tresc:</b>
    <br>
     <p>
      {{ content }}
      </p>
		<b>Adres:</b>
    <br>
      {{ address }}
    <br>
    <br>

    {% endfor %}

        <p class="more"><a href="instructions/crawler">Instrukcja</a></p>
      </div>
     
	

  {% endifequal %}


  {% ifequal type "blog_content2" %}
    <br>
    <b>  Temat: </b> {{ topic }}
    <br>
    <b>Autor: </b>
      {{ author }}
    <br>
		<br>
		<b> Tresc: </b>
		<br>
		<p>
		{{ content }}
		</p>
		<br>
		<b> Adres: </b>
		<br>
		<p>
      {{ address }}
			</p>
    <br>
    <br>


        <p class="more"><a href="instructions/crawler">Instrukcja</a></p>
      </div>
     
	

  {% endifequal %}

	{% ifequal type "comment2" %}
		
		<h2> Komentarz: </h2>
		<p>
		<table>
		<tr>  <td> Autor </td><td> {{ author }} </td></tr>
		<tr>  <td> Adres	</td><td> {{ address }}	 </td></tr>
		<tr>  <td> Data napisania	</td><td> {{ date_ }}	 </td></tr>
		<tr>  <td> Tresc	</td><td> {{ content }}	 </td></tr>
		<tr>  <td> Data dodania	</td><td> {{ add_time }} </td></tr>
		<tr>  <td> id	</td><td> {{ id_ }}	 </td></tr>
		</table>
		</p>
	{% endifequal %}


  {% ifequal type "comment_list" %}
  <table> <th> Lp. </th>  <th> Komentarze </th> 
    {% for id, id_c, address, topic in info %}  
      <tr> <td> {{ forloop.counter }} </td><td> <a href="/crawler/comment/{{ id }}">{{topic}}</a> </td>  </tr>

    {% endfor %}

    </table>
        <p class="more"><a href="instructions/crawler">Instrukcja</a></p>
      </div>
     
	

  {% endifequal %}
 {% ifequal type "comment" %}
    {% for author, comment,  date_  in info %}  
      {{ author }} <br>
      {{ comment }} <br>
      {{ date_ }} <br>
    {% endfor %}

        <p class="more"><a href="instructions/crawler">Instrukcja</a></p>
      </div>
     
	

  {% endifequal %}

{% endblock %}
